/** specific styles for the wiki **/
div.node h1, div.node h2, div.node h3, div.node h4 {
    color: black;
    padding-left: 0;
    border-bottom: solid 1px #999;
    clear: both;
}
div.node h2, div.node h3, div.node h4 {
    margin-top: 1em;
}
div.node .editsection {
    font-size: 9px;
}
.node-wiki span.end {
  background-position: 0 -126px;
  height: 16px;
  margin-top: -2px;
  margin-right: -10px;
}

#toc {
  border: solid 1px #999;
  background: #ddd;
  color: black;
  border-collapse: separate;
  padding: 2px 8px;
  width: auto;
}
#toc li {
  list-style-type: none;
  margin-left: -10px;
}
#toc a {
  color: #035f87 !important;
}


div.node-wiki table a {
  color: #fdfb57;
}
div.node-wiki table a.image {
  display: block;
}
div.node-content table td.data a {
  color: #fcfc00 !important;
}
#toc .toctoggle {
  display: none;
}

#editform, #toolbar, #wpTextbox1 {
  width: 738px;
}

div.node-wiki table a.new {
  color: #fdfb57;
  border-bottom: dotted 1px #fdfb57;
}
#content .node-content p {
  margin-bottom: 20px;
}
#content ul ul, #content ul ul ul {
  margin-bottom: 0;
}

/** tables **/
table {
  border: none;
  width: auto;
}

fieldset>table, table.mw-specialpages-table {
  border: 0;
  background: #0789c1;
  color: white;
  border: solid 2px black;
  width: 100%;
}
table.wikitable {
  background: transparent;
  margin: 0;
  border: solid 2px black;
}
table.wikitable tr {
  background: #4484a6;
}
table.wikitable th, td.type {
  background: black;
}
table.wikitable td.type {
  width: 22%;
}
table.wikitable th, table.wikitable td {
  padding: 2px 4px !important;
  text-align: left;
  color: white;
  border: solid 2px black;
}
table.wikitable .icon-external {
  background-position: 0 -72px;
}
table.wikitable .icon-video {
  background-position: 0px -370px;
}

.node-wiki tbody tr {
  border: none;
}

table label {
  font-weight: normal;
}

.node-wiki legend, .node-wiki h4.mw-specialpagesgroup {
  background: black;
  color: white;
  padding: 0 8px;
  margin: 0;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.4em;
  display: inline;
}

div#mw-pages table {
  background: none;
  border: none;
  color: black;
  width: 100%;
}
div#mw-pages table a {
  color: #035F87;
}

/** start genshi colors **/
div.mw-geshi {
  padding: 1em; 
  margin: 1em 0; 
  border: 1px solid #999;
  background: #eee;
  color: black;
  max-width: 728px;
  overflow-x: auto;  
}
.page-wiki .prose pre, div.mw-geshi pre {
  color: black;
}
.page-wiki .prose pre {
  background: #eee;
  border: solid 1px #999;
  max-width: 728px;
  overflow-x: auto;
  color: black;
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 12px;
  line-height: 16px;
  padding: 4px;
  margin: 8px 0;
}
div.mw-geshi .co1 {
  color: #888 !important;
}
/** end genshi colors **/

div.editCheckboxes input {
  float: none;
}
div.editButtons {
  margin-top: 10px;
  clear: both;
}
div.editButtons input {
  margin-right: 8px;
}
span.editHelp {
  display: block;
  clear: both;
  padding: 10px 0;
}
#wpSummary {
  float: none;
}

/** images **/
.thumb {
  width: auto;
  margin-bottom: .5em;    
}
.prose img.thumbimage {
  padding: 1px;
  display: block;
}
.prose img.thumbimage {
  display: block;
}
.thumbinner {
  border: solid 1px #555;
}
.thumbcaption {
  font-style: italic;
  font-size: 11px;
  background: #ddd;
  padding-left: 8px;
  min-height: 20px;
}
.thumbcaption .magnify {
  float: right;
  padding-right: 4px;
  margin-top: 4px;
}
table.gallery {
  border: 0;
  background-color: transparent;
} 
table.gallery td {
  border: 0;
  background-color: transparent;
}
div.gallerybox {
  background-color: white;
  border: solid 1px #386f91;
}
div.gallerybox div.thumb {
  margin: 0;
}
div.gallerytext {
  background-color: black;
  color: white;
}

.tocnumber {
    padding-right: 10px;
}

/** history page **/
#mw-history-compare input[type=submit] {
    margin-bottom: 8px;
}
#pagehistory {
  border: solid 2px black;
}
#pagehistory li {
  background: #4484a6;
  color: white;
  border: none;
  border-bottom: solid 2px black;
  list-style-type: none !important;
  margin-left: 0 !important;
  padding: 4px;
}
#pagehistory li.selected {
  background: black;
  border: none;
  border-bottom: solid 2px black;
}
#pagehistory li:hover {
  background: black;
}
#pagehistory li a {
  color: #fdfb57;
}
#pagehistory li .comment {
  color: white;
}
#pagehistory li .autocomment {
  color: white;
  font-style: italic;
}

span.history-size {
    display: none;
}
div.printfooter {
    display: none;
}

ul#preftoc {
  list-style-type: none;
  margin: -8px -8px 16px -8px;
  padding: 0 8px;
  background: black;
}
ul#preftoc li {
  margin: 0;
  width: auto;
  display: inline;
  list-style: none outside none;
  white-space: nowrap;
  padding: 0 4px 0 0;
  margin-left: 0 !important; 
  font-size: 12px;
}
ul#preftoc li a {
  color: white;
  margin-right: 0.5em;
  padding: 0 0.5em;
  text-decoration: none;
  background: #29abe2;
}
ul#preftoc li.selected a {
  background: #fcfc00;
  color: black;
}

div.wiki fieldset {
  border: solid 1px black;
  margin-bottom: 10px;
  background: #ddd;
  margin-top: 20px;
}
div.wiki legend {
  border: solid 1px black;
  background: black;
  color: white;
  padding: 0 4px;
  margin-bottom: 19px;
  margin-left: -1px;
}
div.wiki fieldset.prefsection {
  border: none;
  background: transparent;
}
fieldset.prefsection legend.mainLegend {
  display: none;
}

/* images */
div.floatright, table.floatright {
	clear: right;
	float: right;
	position: relative;
	margin: 0 0 .5em .5em;
	border: 0;
}
div.floatright p { font-style: italic; }
div.floatleft, table.floatleft {
	float: left;
	clear: left;
	position: relative;
	margin: 0 .5em .5em 0;
	border: 0;
}
div.tright {
	float: right;
	border-width: .5em 0 .8em 1.4em;
}
div.tleft {
	float: left;
	margin-right: .5em;
	border-width: .5em 1.4em .8em 0;
}

/* emulate center */
.center {
	width: 100%;
	text-align: center;
}
*.center * {
	margin-left: auto;
	margin-right: auto;
}
/* small for tables and similar */
.small, .small * {
	font-size: 94%;
}
table.small {
	font-size: 100%;
}

/** make sure images are within our max size **/
div.fullImageLink img {
  max-width: 740px;
  overflow-x: auto; 	
}

/** comments **/
span.comment {
  display: block;
  margin-bottom: 8px;
  background: transparent;
  color: black;
  font-style: italic;
}
.autocomment {
  color: #666;
}

div.node-wiki input[type="submit"] {
  margin: 0;
}
#wpLicense {
  font-size: 12px;
}

#toolbar img {
  display: inline;
}

/** diff **/
table.diff, td.diff-otitle, td.diff-ntitle {
  background: transparent !important;
}
div.node-wiki table.diff a {
  color: #035F87;
  border-bottom: none;
}

tr.mw-htmlform-field-HTMLTextField, tr.mw-htmlform-field-HTMLTextField+tr td.htmlform-tip {
  display: none;
}
